//
//  SEUserInfoModel.swift
//  SmartEyeForDoctor
//
//  Created by qdsg on 2021/5/7.
//

import HandyJSON

enum SEDoctorAuthenticate: Int, HandyJSONEnum {
    case uncommitted
    case waitexamine
    case reject
    case pass

    var title: String {
        switch self {
        case .uncommitted: return "未认证"
        case .waitexamine: return "审核中"
        case .reject: return "未通过"
        case .pass: return "已认证"
        }
    }

    var isHiddenConfirmBtn: Bool {
        switch self {
        case .pass, .waitexamine: return true
        default: return false
        }
    }
}

struct SEUserInfoModel: HandyJSON {
    /// 用户id
    var userId: String = ""
    /// 医生id
    var id: String = ""
    /// 姓名
    var name: String = ""
    /// 身份证号码
    var idCard: String = ""
    /// 标准医院id
    var hospitalId: String = ""
    /// 标准医院名称
    var hospitalName: String = ""
    /// 院内科室
    var deptName: String = ""
    /// 标准科室id, 多个科室用逗号隔开
    var standardId: String = ""
    /// 标准科室名称
    var standardName: String = ""
    /// 职称id
    var jobTitleCode: String = ""
    /// 职称
    var jobTitle: String = ""
    /// 医生简介
    var introduction: String = ""
    /// 医生擅长方向
    var speciality: String = ""
    /// 问诊费用 单位为分
    var fee: Double = 0
    /// 省id
    var province: String = ""
    /// 市id
    var city: String = ""
    /// 区id
    var region: String = ""
    /// 省
    var provinceName: String = ""
    /// 市
    var cityName: String = ""
    /// 区
    var regionName: String = ""
    /// 是否医师认证：0-未认证 1-认证待审核 2-认证审核未通过 3-认证审核已通过
    var isAuthenticate: SEDoctorAuthenticate = .uncommitted
    /// 身份证正面照片id
    var cardFrontId: String = ""
    /// 身份证正面照片路径
    var cardFrontPath: String = ""
    /// 身份证反面照片id
    var cardBackId: String = ""
    /// 身份证反面照片路径
    var cardBackPath: String = ""
    /// 执业医师资格证图片id
    var certificateId: String = ""
    /// 执业医师资格证图片路径
    var certificatePath: String = ""
    /// 医生头像
    var imgPath: String = ""
    /// 医师认证拒绝原因
    var rejectionReason: String = ""
    /// 小鱼账号
    var videoAccount: String = ""
}
